<?php
class LabelTandanFilterPost{
	public $label_tandan;
	
	public function LabelTandanFilterPost(){
		$label_tandan = array();
		$total	  = 0;
		// label_tandan
		foreach($_POST as $k=>$v){
			if( strpos($k, 'label_tandan-') !== false ){
				$index = substr($k, strpos($k, '-')+1);
				
				$label_tandan['label_tandan'][$index-1]   = $v;
				$label_tandan['berat_tandan'][$index-1]   =  $_POST['berat_tandan-'.$index];
			}
		}		
		
	
		$this->label_tandan = $label_tandan;
	}
}
?>